package io.renren.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: Mr.Wang
 * @description:
 * @create: $ $
 **/
public class DateUtil {


    public static Date timeStamp2Date(String seconds) {
        if(seconds == null || seconds.isEmpty() || seconds.equals("null")){
            return new Date();
        }
        return new Date(Long.valueOf(seconds+"000"));
    }

}
